//引用组件
const Login = () => import('../views/login/Login')
const Home = () => import('../views/home/Home')
const Welcome = () => import('../views/welcome/Welcome')
const Users = () => import('../views/users/Users')
const PowerList = () => import('../views/power/powerlist/PowerList')
const RoleList = () => import('../views/power/rolelist/RoleList')
const Cate = () => import('../views/goods/cates/Cate')

export default [{
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        component: Login
    },
    {
        path: '/home',
        component: Home,
        redirect: '/welcome',
        children: [{
                path: '/welcome',
                component: Welcome
            },
            {
                path: '/users',
                component: Users
            }, {
                path: '/rights',
                component: PowerList
            },
            {
                path: '/roles',
                component: RoleList
            }, {
                path: '/categories',
                component: Cate
            }, {
                path: '/params',
                component: () => import('@/views/goods/params/Params')
            }, {
                path: '/goods',
                component: () => import('@/views/goods/list/List'),
            }, {
                path: '/goods/add',
                component: () => import('@/views/goods/list/compontents/Add')
            }, {
                path: '/goods/alter',
                component: () => import('@/views/goods/list/compontents/Alter')
            }, {
                path: '/orders',
                component: () => import('@/views/order/Order')
            }, {
                path: '/reports',
                component: () => import('@/views/report/Report')
            }, {
                path: '/introduce',
                component: () => import('@/views/introduce/Introduce')
            },
            {
                path: '/paper',
                component: () => import('@/views/paper/Paper')
            }
        ]
    }
]